﻿@using ProjectHopur23.Models




<link rel="stylesheet" type="text/css" href="/Content/bootstrap.css" />
<link rel="stylesheet" type="text/css" href="/Content/Site.css" />
<link rel="stylesheet" type="text/javascript" href="/Scripts/bootstrap.js" />
<link rel="stylesheet" type="text/javascript" href="/Scripts/jquery-1.8.2.js" />


<h1>Admin</h1>

<h2>Leikir</h2>
<p>Hér er listi af leikjum síðunnar. Smelltu á nafn til að breyta upplýsingum um viðkomandi leik.</p>

<div class="listOfGames">
	<table>
		<caption>Leikir</caption>
		<thead>
			<tr>
				<th scope="col">Nafn</th>
				<th scope="col">Lýsing</th>
			</tr>
		</thead>
		<tbody>
		@{
			foreach(Game g in Model)
			{
				<tr>
					<td>@Html.ActionLink(g.name, "ChangeGame/" + g.ID, "Admin", null, new { @class = "btn btn-mini " })</td>
					<td>@g.description</td>
				</tr>
			}
		}
		</tbody>
	</table>
</div>
<div id="addGameMenu">
	<div class="btn btn-mini">@Html.ActionLink("Búa til leik", "AddGame", "Admin")</div>
</div>
